﻿using FarmSmartSleep.Common.Domain.RBACFile;
using Microsoft.EntityFrameworkCore;
using SheepCultivation.Common.Domain;
using SheepCultivation.Common.Domain.Beginning;
using SheepCultivation.Common.Domain.main;
using SheepCultivation.Common.Domain.Purchase_sales;
using SheepCultivation.Common.Domain.PurchaseSales;
using SheepCultivation.Common.Domain.RBAC;
using SheepCultivation.Common.Domain.Sheep;
using SheepCultivation.Common.Domain.SheepBasicInformation;
using SheepCultivation.Common.Domain.SheepFarmSetting;
using SheepCultivation.Common.Domain.Week2;
using SheepCultivation.Common.Domain.Week3;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepCultivation.Common.EFDb
{
    public class EFDBContext : DbContext
    {
        public EFDBContext(DbContextOptions<EFDBContext> options) : base(options) { }
        /// <summary>
        /// 员工
        /// </summary>
        public DbSet<Employee> Employee { get; set; }
        #region 第一周
        public DbSet<Accountingunit> Accountingunits { get; set; }
        public DbSet<City> City { get; set; }
        public DbSet<County> County { get; set; }
        public DbSet<Enterprise> Enterprise { get; set; }
        public DbSet<Industry> Industry { get; set; }
        public DbSet<Province> Province { get; set; }
        public DbSet<EnterPriseTree> EnterPriseTree { get; set; }
        public DbSet<Department> Department { get; set; }
        public DbSet<DepartmentType> DepartmentType { get; set; }
        public DbSet<Appointment> Appointment { get; set; }
        #endregion

        #region 丁瑶第二周
        /// <summary>
        /// 栋舍表
        /// </summary>
        public DbSet<Building> Building { get; set; }
        /// <summary>
        /// 栋舍类型表
        /// </summary>
        public DbSet<BuildingType> BuildingType { get; set; }
        /// <summary>
        /// 栏位表
        /// </summary>
        public DbSet<Columns> Columns { get; set; }
        /// <summary>
        /// 羊只称重表
        /// </summary>
        public DbSet<SheepWeighed> SheepWeighed { get; set; }
        /// <summary>
        /// 品种表
        /// </summary>
        public DbSet<Sheepvariety> Sheepvariety { get; set; }
        /// <summary>
        /// 体尺测定表
        /// </summary>
        public DbSet<Body> Body { get; set; }
        /// <summary>
        /// 品相测定表
        /// </summary>
        public DbSet<Appearances> Appearances { get; set; }
        /// <summary>
        /// 分娩提示表
        /// </summary>
        public DbSet<Parturition> Parturition { get; set; }
        #endregion

        #region 靳雪菊第二周
        /// <summary>
        /// 种母分娩表
        /// </summary>
        public DbSet<SheepChildbirth> SheepChildbirth { get; set; }
        /// <summary>
        /// 种母羊只历史表
        /// </summary>
        public DbSet<SheepHistory> SheepHistory { get; set; }
        /// <summary>
        /// 种母配种表
        /// </summary>
        public DbSet<SheepHybridization> SheepHybridization { get; set; }
        /// <summary>
        /// 种母妊检表
        /// </summary>
        public DbSet<SheepPregnancy> SheepPregnancy { get; set; }
        /// <summary>
        /// 种母断奶表
        /// </summary>
        public DbSet<SheepWeaning> SheepWeaning { get; set; }
        #endregion

        #region 王天意第二周
        /// <summary>
        /// 基本信息表
        /// </summary>
        public DbSet<BasicInformation> BasicInformation { get; set; }
        /// <summary>
        /// 出生信息表
        /// </summary>
        public DbSet<BirthMessage> BirthMessage { get; set; }
        /// <summary>
        /// 出生类型表
        /// </summary>
        public DbSet<BirthStatus> BirthStatus { get; set; }
        /// <summary>
        /// 后裔信息表
        /// </summary>
        public DbSet<ProgenyFile> ProgenyFile { get; set; }
        /// <summary>
        /// 羊只品种表
        /// </summary>
        public DbSet<Sheepbreed> Sheepbreed { get; set; }
        /// <summary>
        /// 种母期初表
        /// </summary>
        public DbSet<FemalePeriodic> FemalePeriodic { get; set; }
        /// <summary>
        /// 种公起初表
        /// </summary>
        public DbSet<MalePeriodic> MalePeriodic { get; set; }
        /// <summary>
        /// 后裔期初表
        /// </summary>
        public DbSet<ProgenyPeriodic> ProgenyPeriodic { get; set; }
        /// <summary>
        /// 羊场设置表
        /// </summary>
        public DbSet<Sheepfarm> Sheepfarm { get; set; }
        /// <summary>
        /// 羊场规模
        /// </summary>
        public DbSet<Sheepfarmscale> Sheepfarmscale { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> User { get; set; }

        #endregion
        #region 蒋敬博第二周
        /// <summary>
        /// 羔羊表
        /// </summary>
        public DbSet<Lamb> Lamb { get; set; }
        /// <summary>
        /// 待配提示表
        /// </summary>
        public DbSet<PendingPrompts> PendingPrompts { get; set; }
        /// <summary>
        /// 首次妊检提示表
        /// </summary>
        public DbSet<Pregnancy> Pregnancy { get; set; }
        /// <summary>
        /// 羊详细信息表
        /// </summary>
        public DbSet<SheepInfo> SheepInfo { get; set; }
        /// <summary>
        /// 羊只转舍表
        /// </summary>
        public DbSet<Transfer> Transfer { get; set; }
        /// <summary>
        /// 后裔转种
        /// </summary>
        public DbSet<Descendent> Descendent { get; set; }
        /// <summary>
        /// 羊只转舍转入记录表
        /// </summary>
        public DbSet<BuildingsRecordEnter> BuildingsRecordEnter { get; set; }
        /// <summary>
        /// 羊只转舍转出记录表
        /// </summary>
        public DbSet<BuildingsRecordOut> BuildingsRecordOut { get; set; }

        #endregion
        #region 蒋敬博第三周
        /// <summary>
        /// 摘要
        /// </summary>
        public DbSet<Absrtact> Absrtacts { get; set; }
        /// <summary>
        /// 采购员
        /// </summary>
        public DbSet<Buyer> Buyer { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        public DbSet<Client> Client { get; set; }
        /// <summary>
        /// 客户管理
        /// </summary>
        public DbSet<ClientManage> ClientManage { get; set; }
        /// <summary>
        /// 客户级别
        /// </summary>
        public DbSet<CustomerLevel> CustomerLevel { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public DbSet<Depot> Depot { get; set; }
        /// <summary>
        /// 市场
        /// </summary>
        public DbSet<Market> Market { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        public DbSet<Salesman> Salesman { get; set; }
        /// <summary>
        /// 羊只采购
        /// </summary>
        public DbSet<SheepBuy> SheepBuy { get; set; }
        /// <summary>
        /// 羊只销售
        /// </summary>
        public DbSet<SheepSale> SheepSale { get; set; }
        /// <summary>
        /// 供应商管理
        /// </summary>
        public DbSet<Supplier> Supplier { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public DbSet<Vendor> Vendor { get; set; }
        #endregion

        #region 丁瑶第三周
        /// <summary>
        /// 羊只死亡
        /// </summary>
        public DbSet<DeathManagement> DeathManagement { get; set; }
        /// <summary>
        /// 羊只淘汰
        /// </summary>
        public DbSet<Eliminates> Eliminates { get; set; }
        /// <summary>
        /// 羊只类型
        /// </summary>
        public DbSet<SheepTypes> SheepTypes { get; set; }
        #endregion


    }
}
